// AWTItemEvent.h: interface for the AWTItemEvent class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_AWTITEMEVENT_H__B9BB53A3_46F7_11D2_A6A1_0004AC24604E__INCLUDED_)
#define AFX_AWTITEMEVENT_H__B9BB53A3_46F7_11D2_A6A1_0004AC24604E__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#include "AWTEvent.h"
#include "AWTItemSelectable.h"

#define ITEM_FIRST		 701

class AFX_EXT_CLASS AWTItemEvent : public AWTEvent  
{
DECLARE_DYNAMIC(AWTItemEvent)
public:
//	AWTItemEvent(AWTItemSelectable* source, int id, CString* item, int stateChange);
	AWTItemEvent(AWTItemSelectable* source, int id, DWORD item, int stateChange);
	virtual ~AWTItemEvent();

	enum {
		ITEM_STATE_CHANGED = ITEM_FIRST
	};

	enum {
		SELECTED = 1,
		DESELECTED
	};

	AWTItemSelectable* getItemSelectable() 
		{return (AWTItemSelectable*)m_source;}

	CString* getItem() 
		{return (CString*)m_item;}
	DWORD getItemDWORD() 
		{return m_item;}
	int getStateChange() 
		{return m_stateChange;}

protected:
//  CString* m_item;
  DWORD m_item;
  int m_stateChange;
};

#endif // !defined(AFX_AWTITEMEVENT_H__B9BB53A3_46F7_11D2_A6A1_0004AC24604E__INCLUDED_)
